//
//  LSZExchangeCollectionViewCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/3/28.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZExchangeCollectionViewCell.h"

@implementation LSZExchangeCollectionViewCell
-(id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imageBigType = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 75, 16)];
        [self addSubview:self.imageBigType];

        CGFloat width;
        if(ScreenWidth ==414){
            width = (ScreenWidth - 40-1) / 2;
        }else
        if(ScreenWidth ==375){
            width = (ScreenWidth - 40-1) / 2;
        }else{
            width = (ScreenWidth - 30-1) / 2;
        }
        self.imageBk = [[UIImageView alloc]init];
        self.imageBk.frame = CGRectMake(width*0.29,CGRectGetMaxY(self.imageBigType.frame)+20, width*0.42, width*0.42*1.34);
        [self addSubview:self.imageBk];

        self.labelMoney = [[UILabel alloc]init];
        self.labelMoney.textColor = navColor;
        [self addSubview:self.labelMoney];
        if(ScreenWidth ==414){
            self.labelMoney.frame = CGRectMake(10, 19+CGRectGetMaxY(self.imageBk.frame), self.frame.size.width-10, 18);
        }else
        if(ScreenWidth ==375){
            self.labelMoney.frame = CGRectMake(10, 19+CGRectGetMaxY(self.imageBk.frame), self.frame.size.width-10, 18);
        }else{
            self.labelMoney.frame = CGRectMake(10, 20+CGRectGetMaxY(self.imageBk.frame), self.frame.size.width-10, 14);
        }
        self.labelMoney = [LSZSpecialPackaging setLabel_14_5_Size:self.labelMoney];
        self.labelIsOrOther = [[UILabel alloc]init];
        self.labelIsOrOther.textColor = lightColor;
        [self addSubview:self.labelIsOrOther];

        if (ScreenWidth == 320) {
            //5
            self.labelIsOrOther.font = FONT_(12);
            self.labelIsOrOther.frame = CGRectMake(10, CGRectGetMaxY(self.labelMoney.frame)+10,self.frame.size.width-10, 14);
        }else if(ScreenWidth == 375){
            // 6 7
            self.labelIsOrOther.font = FONT_(12.5);
            self.labelIsOrOther.frame = CGRectMake(10, CGRectGetMaxY(self.labelMoney.frame)+9,self.frame.size.width-10,16);
        }else {
            //plus
            self.labelIsOrOther.font = FONT_(13);
            self.labelIsOrOther.frame = CGRectMake(10, CGRectGetMaxY(self.labelMoney.frame)+8,self.frame.size.width-10,18);
        }
    }
    return self;
}
@end
